package io.renren.modules.finance.service;


import io.renren.common.base.GenericService;
import io.renren.common.exception.RRException;
import io.renren.common.utils.ExcelData;
import io.renren.common.utils.PageUtils;
import io.renren.modules.finance.entity.UserMoneyTotal;
import io.renren.modules.finance.entity.FinanceWithdrawalsApp;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 代理提现申请
 *
 * @author meishou
 * @date 2019-05-02 14:36:34
 */
public interface FinanceWithdrawalsAppService extends GenericService<FinanceWithdrawalsApp> {

    boolean apply(FinanceWithdrawalsApp financeWithdrawalsAppEntity, UserMoneyTotal agentMoneyTotal);

    PageUtils queryListPage(Map<String, Object> params);

    boolean agree(FinanceWithdrawalsApp financeWithdrawalsApp, Integer operatorId);

    @Transactional(rollbackFor = RRException.class)
    boolean reject(FinanceWithdrawalsApp financeWithdrawalsApp);

    @Transactional(rollbackFor = RRException.class)
    boolean close(FinanceWithdrawalsApp financeWithdrawalsApp);

    ExcelData export(Map<String, Object> params);
}

